package com.hx;

public class ArrayInset {
	public static void main(String[] args) {
		int[][] a = { { 1, 2, 3 }, { 4, 5, 6 } };
		for (int i = 0; i < a.length; i++)
			for (int j = 0; j < a[i].length; j++)
				System.out.print(a[i][j] + "\t");
		System.out.println();
		int[][] b = a.clone();
		b[0] = a[0].clone();
		b[1] = a[0].clone();
		b[0][0] = 10;
		for (int i = 0; i < b.length; i++)
			for (int j = 0; j < b.length; j++)
				System.out.print(b[i][j] + "\t");
		System.out.println();

	}

}
